#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

extern unsigned char *QString2Key(QString str);
extern unsigned char *QString2Input(QString str);
extern QString UnsignedChar2QString(unsigned char *str, int n);

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_NewLock_Button_clicked();
    void reshow();

    void on_View_Button_clicked();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
